using Abp.Domain.Entities;
using Abp.Domain.Entities.Auditing;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace Yozeev.SystemConfig.SystemRecord
{
    /// <summary>
    /// 校验记录
    /// </summary>
    public class CheckRecord : ByUserEntity<Guid>
    {
        /// <summary>
        /// 手机号
        /// </summary>
        [Required]
        [StringLength(128)]
        public string Mobile { get; set; }
        /// <summary>
        /// 消息类型
        /// </summary>
        [Required]
        [StringLength(128)]
        public MassageTypeEnum MassageType { get; set; }
        /// <summary>
        /// 发送内容
        /// </summary>
        [Required]
        [MaxLength(AppConsts.MaxEmailAddressLength)]
        public string CheckExplain { get; set; }
        /// <summary>
        /// 验证码
        /// </summary>
        [Required]
        [StringLength(500)]
        public string Captcha { get; set; }
        /// <summary>
        /// 是否使用
        /// </summary>
        public bool IsEnabled { get; set; }
        /// <summary>
        /// 验证时间
        /// </summary>
        [Required]
        [StringLength(128)]
        public DateTime CheckTime { get; set; }
    }
}
